﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HRM.Model
{
    public class GroupUserService : IEntityService<NhomNguoiDung>
    {
        public List<NhomNguoiDung> GetAll()
        {
            using (HRMEntities entities = new HRMEntities())
            {
                var list = entities.NhomNguoiDungs.Include("NguoiSuDungs").Include("PhanQuyens").Include("NguoiSuDungs.NhanVien").ToList();
                return list;
            }
        }

        public bool Add(NhomNguoiDung entity)
        {
            return false;
        }

        public bool Update(NhomNguoiDung entity)
        {
            return false;
        }

        public bool Delete(NhomNguoiDung entity)
        {
            return false;
        }

        public bool DeleteList(List<NhomNguoiDung> list)
        {
            return false;
        }

        public List<NhomNguoiDung> GetPaging(int pageIndex, int pageSize)
        {
            return this.GetAll();
        }

        public int GetNumberOfPages(int pageSize)
        {
            return 0;
        }
    }
}
